package com.yifang.yibingproject.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
@ApiModel("员工用户DTO")
public class StaffDTO {

    @ApiModelProperty("用户id")
    private Long id;

    @ApiModelProperty("前端登录账号")
    private String username;

    @ApiModelProperty("用户昵称")
    private String nickname;

    @ApiModelProperty("用户真实姓名")
    private String realName;

    @ApiModelProperty("手机号")
    private String mobile;

    @ApiModelProperty("头像URL")
    private String avatar;

    @ApiModelProperty("性别：0.未知 1.男 2.女")
    private Integer gender;

    @ApiModelProperty("角色列表")
    private List<String> roleList;

    @ApiModelProperty("最后登录时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime lastLoginTime;

    @ApiModelProperty("最后登录IP地址")
    private String lastLoginIp;

    @ApiModelProperty("用户状态：1.正常 2.禁用")
    private Integer status;
}
